package com.baichuan.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

@Slf4j
@Component
public class task {
    @Scheduled(cron = "0/5 * * * * ? ")
    public void test(){
        ArrayList<Integer> integers = new ArrayList<>();
        for (int i = 0; i <1000 ; i++) {
            integers.add(i);
        }
        integers.stream().forEach(System.out::println);
    }
}
